$(function(){
  let mychart = echarts.init(document.querySelector('.sevenBox'))
  let option = {
    title: {
      show: true,
      text: "标题样式",
      top:30,
      left:15,
      // padding: [10],
      textStyle: {
          fontWeight: "normal",
          color: "#fff", // 标题颜色
          fontSize: 14,

      }
  },
    polar: {
      radius: [30, '60%']
    },
    angleAxis: {
      max: 4,
      startAngle: 75
    },
    radiusAxis: {
      type: 'category',
      data: ['a', 'b', 'c', 'd']
    },
    tooltip: {},
    series: {
      type: 'bar',
      data: [2, 1.2, 2.4, 3.6],
      coordinateSystem: 'polar',
      label: {
        show: true,
        position: 'middle',
        formatter: '{b}: {c}'
      }
    }
  };
mychart.setOption(option)
window.addEventListener('resize',function(){
  mychart.resize()
})
})